Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assorted improvements for TiledDataset #402

Merged
merged 15 commits into from
Aug 26, 2024

Conversation

SolarDrew
Copy link
Contributor

@SolarDrew SolarDrew commented Jun 24, 2024

Add __repr__ (just uses ds[0, 0] for now for ease of putting something together). Closes #401

Add tiles_shape property. Closes #403

Add slice_tiles() method to apply the same slice to all datasets. Closes #404

Copy link

codspeed-hq bot commented Jun 24, 2024

CodSpeed Performance Report

Merging #402 will not alter performance

Comparing SolarDrew:tiledds-improvements (55f6c95) with main (bf3dc0a)

Summary

✅ 9 untouched benchmarks

@SolarDrew SolarDrew changed the title Add basic repr for TiledDataset Assorted improvements for TiledDataset Jun 27, 2024
Copy link
Member

@Cadair Cadair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of things to sort

wcs = ds.wcs.low_level_wcs

# Pixel dimensions table

instr = ds.meta.get("instrument_name", "")
instr = ds.inventory.get("instrument_name", "")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this starting to work doesn't cause a test to fail something has gone wrong.

Suggested change
instr = ds.inventory.get("instrument_name", "")
instr = ds.inventory.get("instrument", "")

@Cadair Cadair merged commit aa3cc72 into DKISTDC:main Aug 26, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants